<?php

Yii::import('common.models._base.BaseState');

class State extends BaseState {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }
public function relations() {
		return array(
			'country' => array(self::BELONGS_TO, 'Country', 'country_id'),
		);
	}
        public function attributeLabels() {
		return array(
			'id' => Yii::t('app', 'ID'),
			'name' => Yii::t('app', 'State Name'),
			'state_code' => Yii::t('app', 'State Code'),
			'is_active' => Yii::t('app', 'Status'),
			'country_id' => Yii::t('app', 'Country Name'),
		);
	}
}